﻿@{
    string link = Request.Url.ToString().Split('?')[0];
        
    string counter = "";
    
    switch((int) Model.ItemCount)        
    {
        case 0:
            counter = T("There are no images in the gallery").ToString();
            break;
        case 1:
            counter = T("Only one image in the gallery").ToString();
            break;
        default:
            counter = T("{0} images of {1}", Model.PageItems, Model.ItemCount).ToString();
            break;
    }

    string pages = (Model.PageCount > 0) ? T("Page {0} of {1}", Model.PageIndex, Model.PageCount).ToString() : "";
}
<div class="simpleGalleryCounter">
    <span class="simpleGalleryItems">@counter</span>
    <span class="simpleGalleryPages">@pages</span>
</div>        
